﻿/*-------------------------------------------------------------------------
* 命名空间: XrayDirection.DAL.DataEntity/OrderEntity
* 类       名: OrderEntity
* 功      能:  TD
* 时      间:  2024/1/3 15:03:23
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
namespace XrayDirection.DAL.DataEntity
{
    public class OrderEntity : EntityBase
    {
        /// <summary>
        /// 工单名称(不唯一,用来标识物料信息)
        /// </summary>
        private string? recipeName;

        public string? RecipeName
        {
            get { return recipeName; }
            set { recipeName = value; }
        }

        /// <summary>
        /// 短边板高H
        /// </summary>
        private double longLengthX;
        public double LongLengthX
        {
            get { return longLengthX; }
            set { longLengthX = value; }
        }


        /// <summary>
        /// 长边靶距Y
        /// </summary>
        private double shortLengthY;

        public double ShortLengthY
        {
            get { return shortLengthY; }
            set { shortLengthY = value; }
        }

        /// <summary>
        /// 前沿距D
        /// </summary>
        private double frontEdgeDisD;

        public double FrontEdgeDisD
        {
            get { return frontEdgeDisD; }
            set { frontEdgeDisD = value; }
        }


        /// <summary>
        /// 方向孔距离F
        /// </summary>
        private double directHoleDisF;

        public double DirectHoleDisF
        {
            get { return directHoleDisF; }
            set { directHoleDisF = value; }
        }

        /// <summary>
        /// 胶边距离,补偿距离(靶标到边缘距离补偿值)
        /// </summary>
        private double moveOffset;

        public double MoveOffset
        {
            get { return moveOffset; }
            set { moveOffset = value; }
        }


        /// <summary>
        /// 胶边距离,补偿距离(靶标到边缘距离补偿值)
        /// </summary>
        private double moveOffset02;

        public double MoveOffset02
        {
            get { return moveOffset02; }
            set { moveOffset02 = value; }
        }

        /// <summary>
        /// 识别成功的个数
        /// </summary>
        private int okCount;

        public int OkCount
        {
            get { return okCount; }
            set
            {
                if (value - okCount == 1)
                {
                    Count = Count + 1;
                }
                okCount = value;
            }
        }

        /// <summary>
        /// 失败的个数
        /// </summary>
        private int failCount;

        public int FailCount
        {
            get { return failCount; }
            set
            {
                if (value - failCount == 1)
                {
                    Count += 1;
                }
                failCount = value;
            }
        }

        /// <summary>
        /// 已生产数量
        /// </summary>
        private int count;

        public int Count
        {
            get { return count; }
            set { count = value; }
        }
    }
}
